using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using SkiaSharp;

namespace FlowChartV2.Libraries
{
    public class Line
    {
        public Figure figure1 { get; set; }
        public Figure figure2 { get; set; }
        public Line(Figure first, Figure second)
        {
            this.figure1 = first;
            this.figure2 = second;
        }
        public void Draw(ref SKCanvas canvas, SKPaint paint)
        {
            canvas.DrawLine(figure1.bottom.x, figure1.bottom.y, figure2.top.x, figure2.top.y, paint);
        }
    }
}